package com.sm.service;

import com.sm.model.Dealer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sm.dao.DealerMapper;

@Service
public class DealerService {

	@Autowired
	private DealerMapper dealerMapper;
	
	public int insertSelective(Dealer dealer) {
		int a = dealerMapper.insertSelective(dealer);
		return a;
	}
	
	public Dealer selectByPrimaryKey(Integer dealerId) {
		return dealerMapper.selectByPrimaryKey(dealerId);
	}
	
}
